/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project1;

/**
 *
 * @author maciej
 */
public class Point3D {

    double x;
    double y;
    double z;

    public Point3D(double x, double y, double z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public Point3D scale(double s) {
        x *= s;
        y *= s;
        z *= s;
        return this;
    }

    @Override
    public Point3D clone() {
        return new Point3D(x, y, z);
    }

    public void set(Point3D p){
        x = p.x;
        y = p.y;
        z = p.z;
    }
    
    /*public int[] toNormilezed(){
        int a[] = new int[4];
        a[0] = x;
        a[1] = y;
        a[2] = z;
        a[3] = 1;
        return a;
    }*/
}